The _gggg_eeee_tttt_cccc_hhhh, _wwww_gggg_eeee_tttt_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_cccc_hhhh, and _mmmm_vvvv_wwww_gggg_eeee_tttt_cccc_hhhh routines read a character from
the terminal associated with the window. In no-delay mode, if no input
is waiting, the value _EEEE_RRRR_RRRR is returned. In delay mode, the program waits
until the system passes text through to the program. Depending on the
setting of _cccc_bbbb_rrrr_eeee_aaaa_kkkk, this is after one character (_cccc_bbbb_rrrr_eeee_aaaa_kkkk mode), or after
the first newline (_nnnn_oooo_cccc_bbbb_rrrr_eeee_aaaa_kkkk mode). In half-delay mode, the program waits
until a character is typed or the specified timeout has been reached.
Unless _nnnn_oooo_eeee_cccc_hhhh_oooo has been set, the character will also be echoed into the
designated window.
If the window is not a pad, and it has been moved or modified since the
last call to _wwww_rrrr_eeee_ffff_rrrr_eeee_ssss_hhhh, _wwww_rrrr_eeee_ffff_rrrr_eeee_ssss_hhhh will be called before another character
is read.
If _kkkk_eeee_yyyy_pppp_aaaa_dddd is _TTTT_RRRR_UUUU_EEEE, and a function key is pressed, the token for that
function key is returned instead of the raw characters. Possible
function keys are defined in _cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh with integers beginning with _0000_4444_0000_1111,
whose names begin with _KKKK_EEEE_YYYY______.... If a character that could be the beginning
of a function key (such as escape) is received, _cccc_uuuu_rrrr_ssss_eeee_ssss sets a timer. If
the remainder of the sequence does not come in within the designated
time, the character is passed through; otherwise, the function key value
is returned. For this reason, many terminals experience a delay between
the time a user presses the escape key and the escape is returned to the
program. Since tokens returned by these routines are outside the ASCII
range, they are not printable.
The _uuuu_nnnn_gggg_eeee_tttt_cccc_hhhh routine places _c_h back onto the input queue to be returned by
the next call to _wwww_gggg_eeee_tttt_cccc_hhhh.
FFFFuuuunnnnccccttttiiiioooonnnn KKKKeeeeyyyyssss
The following function keys, defined in _cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh, might be returned by
_gggg_eeee_tttt_cccc_hhhh if _kkkk_eeee_yyyy_pppp_aaaa_dddd has been enabled. Note that not all of these may be
supported on a particular terminal if the terminal does not transmit a
unique code when the key is pressed or if the definition for the key is
not present in the _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo database.
All routines return the integer _EEEE_RRRR_RRRR upon failure and an integer value
other than _EEEE_RRRR_RRRR upon successful completion.
PPPPaaaaggggeeee 4444
NOTES
The header file _cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh automatically includes the header files _ssss_tttt_dddd_iiii_oooo_...._hhhh
and _uuuu_nnnn_cccc_tttt_rrrr_llll_...._hhhh.
Use of the escape key by a programmer for a single character function is
discouraged.
When using _gggg_eeee_tttt_cccc_hhhh, _wwww_gggg_eeee_tttt_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_cccc_hhhh, or _mmmm_vvvv_wwww_gggg_eeee_tttt_cccc_hhhh, _nnnn_oooo_cccc_bbbb_rrrr_eeee_aaaa_kkkk mode and _eeee_cccc_hhhh_oooo
mode should not be used at the same time. Depending on the state of the
tty driver when each character is typed, the program may produce
undesirable results.
Note that _gggg_eeee_tttt_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_cccc_hhhh, and _mmmm_vvvv_wwww_gggg_eeee_tttt_cccc_hhhh may be macros.